#ifndef RunAction_h
#define RunAction_h 1

class Hist1i;

#include "G4UserRunAction.hh"
#include "globals.hh"
class G4Run;

class RunAction: public G4UserRunAction
{
  public:
    RunAction();
   ~RunAction();

  public:
    void BeginOfRunAction(const G4Run*);
    void EndOfRunAction(const G4Run*);
    
    void DisplayProgress(G4int);
    void FillEmitedHist(G4int);
    void FillEnergyHist(G4double);
    void FillEnergyProfile(G4double*);

  private:
    G4int eventsNumber;
    G4int printModulo;
    Hist1i* histEmited;
    Hist1i* histEnergy;
    Hist1i** histProfile;
    G4int nLayers;
};

#endif
